﻿using DeviceMaintainGIS.BLL.Loca;
using DeviceMaintainGIS.Model;
using DeviceMaintainGIS.Model.LocaInfo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace DeviceMaintainGIS.Controllers
{
    /// <summary>
    /// 基站信息
    /// </summary>
    public class LocaController : ApiController
    {
        /// <summary>
        /// 通过ID获取基站信息
        /// </summary>
        /// <param name="LocaId"></param>
        /// <returns></returns>
        public ReturnVM<LocaInfoModel> Get(string LocaId)
        {
            return new LocaService().GetLocaListByID(LocaId);
        }

        /// <summary>
        /// 获取基站信息列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public ReturnListVM<LocaInfoModel> Post(LocaRequest request)
        {
            return new LocaService().GetLocaList(request);
        }
    }
}
